<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<script type="text/javascript" src="${pageContext.request.contextPath}/js/areaCodes.js"></script>
<title>Insert title here</title>
</head>
<body>
	
	<form action="${pageContext.request.contextPath }/addRouteNode.action" method="post">
		<tr>
			<td>选择区间：
				<select id="Province2" name="Province2"></select>
				<select id="City2" name="City2"></select>
				<select id="Area2" name="Area2"></select>
				<script type="text/javascript">
					addressInit('Province2', 'City2', 'Area2');
				</script>
			</td>
		</tr>
		<tr>
			<td>
				距离<input type="text" name="distance">
			</td>
		</tr>
		<tr>
			<td>
				<input type="submit" value="提交">
			</td>
		</tr>
	</form>
	
	
	<!-- 物流路径list  -->
	<div> 
		<table>
			<thead>
				<tr>
					<th>地名</th>
					<th>距离</th>
				</tr>
			</thead>
			<tbody>
				<c:forEach items="${routeNodeList}" var="order">
					<tr>
						<td>${order.routeNodeID }</td>
						<td>${order.routeID }</td>
						<td>${order.nodeName }</td>
						<td>${order.distance}</td>		
						<td><a href="${pageContext.request.contextPath }/deleteRouteNode.action?routeNodeID=${order.routeNodeID }">删除</a></td>					
					</tr>
				</c:forEach>
			</tbody>
		</table>
	</div>
</body>
</html>